package com.lemner.ke.fragment;

import android.os.Bundle;
import android.view.View;

import com.lemner.ke.R;
import com.lemner.ke.base.BaseFragment;
import com.lemner.ke.bean.VideoRvBean;
import com.lemner.ke.view.RichTextView;

/**

* 作者：张恺

* 时间：2018/9/20 

* 类描述：视频详情-简介

*/

public class VideoDescFragment extends BaseFragment {
    private RichTextView ric_videodesc;
    private VideoRvBean videoRvBean;
    private String content;
    @Override
    public int getLayoutFile() {
        return R.layout.fragment_descvideo;
    }

    @Override
    public void initSetting() {
    }

    @Override
    public void initView() {
        ric_videodesc=findViewById(R.id.ric_videodesc);
    }

    @Override
    public void initEvent() {

    }

    @Override
    public void initData() {
        Bundle bundle = getArguments();
        VideoRvBean videoRvBean = (VideoRvBean) bundle.getSerializable("bean");
        if (videoRvBean != null) {
            content = videoRvBean.getContent();
        }
        ric_videodesc.setContent(content);
    }

    @Override
    public void onClick(View v) {

    }
}
